#include "nemu.h"
#include "monitor/diff-test.h"

bool isa_difftest_checkregs(CPU_state *ref_r, vaddr_t pc) {

  // Log("nemu pc=%x,qemu pc=%x",cpu.pc,ref_r->pc);
  uint32_t* qemudata = (uint32_t*)ref_r;
  if(cpu.pc != ref_r->pc)
    return false;
  for(int i=0;i<32;i++){
    // printf("nemu x[%d]=%x qemu x[%d]=%x",i,qemudata,i,reg_l(i));
    // Log("nemu x[%d]=%x qemu x[%d]=%x",i,reg_l(i),i,qemudata[i]);
    if(qemudata[i] != reg_l(i))
      return false;
  }

  return true;
}

void isa_difftest_attach(void) {
}
